Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
showMessages
This is the central procedure for the displaying all message types including Message (
MES), Information (INF), Warnings (WAR), Errors (ERR), Serious Halt Errors (HAL), and About Window (ABO). Any button combination is supported.The default message type is
ERR. The default button list isOK. The default label to return isOK, ifOKexists. Otherwise, the default is the first button in the list. The default cancel button is alsoOK, or the first entry in the button list. The default title depends on the message type.If running server side, the messages cannot be displayed and can only be written to the message log. Because there is no user interface on the server side, the default button label is returned.
If running client side, the messages are displayed in a dialog window. The procedure checks the
suppressDisplayproperty in the Session Manager. If it is set toYES, the procedure does not display the message. The message is passed to the log. This is useful when running take-on procedures client side.The messages are passed to the procedure,
af\app\afmessagep.p, on the AppServer for interpretation. This procedure performs the necessary tasks to return the formatted messages. This might include the following tasks:Once the messages have been formatted, a client-side message is displayed using the standard Dynamics message dialog box,
Location: af\app\afsesmngrp.i Parameters:af\cod2\afmessaged.w. On the server side, the Dynamics error log is updated with the error and, if possible, an e-mail is sent to the currently logged-in user to notify them of the error. This process is also followed if the error log flag is set toYESor message display suppression is enabled.INPUT pcMessageList AS CHARACTERINPUT pcMessageType AS CHARACTERINPUT pcButtonList AS CHARACTERINPUT pcDefaultButton AS CHARACTERINPUT pcCancelButton AS CHARACTERINPUT pcMessageTitle AS CHARACTERINPUT plDisplayEmpty AS LOGICALINPUT phContainer AS HANDLEOUTPUT pcButtonPressed AS CHARACTERNotes: When running client side, the procedure returns the untranslated button text of the pressed button. When running server side, the untranslated button text of the default button is returned. Examples: See the main block inaf\cod2\aftemlognw.w.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |